﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SpecialSrhForm.aspx.cs" Inherits="App_Input_SpecialSrhForm" Title="生活管家-特殊计划维护"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    &nbsp;<div id="tableResult">
    <table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" colspan="4" >
			        <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
			    </td>						
		      </tr>
            </table>
		    <table class="table_border_line">
                    <tr>
                        <td style="width: 10px; height: 24px;">&nbsp;</td>
                        <td style="WIDTH: 62px" align="left" nowrap class="list_data_bg_left">任务日期：</td>
                        <td style="" align="left" nowrap>&nbsp;<asp:TextBox ID="txtBeginDate"
                            runat="server" Width="94px" onfocus="new Calendar(1900,2015,0,null).show(this);" MaxLength="10"></asp:TextBox>~<asp:TextBox
                                ID="txtEndDate" runat="server" MaxLength="10" onfocus="new Calendar(1900,2015,0,null).show(this);"
                                Width="94px"></asp:TextBox></td>
                        <td align="left" nowrap="nowrap" style="width: 11%; height: 24px;">&nbsp;任务责任人：</td>
                         <td >
                            <asp:TextBox ID="txtEmpId" runat="server" MaxLength="4" Width="55px"></asp:TextBox>
                            <asp:TextBox ID="txtEmpName" runat="server"
                             Width="87px"  BackColor="#E0E0E0" BorderColor="#E0E0E0" ForeColor="Black"   contentEditable ="false" ></asp:TextBox>
                             <a  href="#" onclick="javascript:popupEmployeeSearch('<%=txtEmpId.ClientID%>', '<%=txtEmpName.ClientID %>' );">
                                 <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a>                            
                        </td>
                    </tr>		    
           </table></td>
      </tr>
      <tr>
        <td align="center">
            <br />
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnNew" runat="server" CssClass="button" Text="新 建" Width="100%" OnClick="btnNew_Click"/></td>	
                    
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>											                             
             </tr>
          </table>                  
          </td>
      </tr>
    </table>        
        <table width="100%">
            <tr>
                <td align="left" >
                <script language="javascript">
                                        (new TitleBar('SearchBar', '特殊计划列表')).showBar();
                            </script>
                </td>
            </tr>
            <tr>
                <td>
                    
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True"
                        AutoGenerateColumns="False" CssClass="GridView_table" DataKeyNames="SpecialId"
                        OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging"
                        OnRowDataBound="viewSrhRst_RowDataBound" BorderStyle="Solid" BorderWidth="3px" EnableViewState="False">
                        <Columns>
                            <asp:BoundField HeaderText="计划编号" DataField="SpecialId" Visible = "False">
                                <HeaderStyle Width="2%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="任务日期" DataField="SpecialDate" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode = False>
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="开始时间" DataField="BeginTime">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="结束时间" DataField="EndTime">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="完成时间" DataField="FactTime">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="当前管家" DataField="EmployeeName">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="移交管家" DataField="FromEmployeeName">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="房间号" DataField="ApartmentNo">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>                                                        
                            <asp:TemplateField HeaderText="会员编号">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("MemberNo") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                <ItemTemplate>
                                    <asp:HyperLink ID="hypeMemberNo"  runat="server" href="#"  Text='<%# Bind("MemberNo") %>' ></asp:HyperLink> 
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="任务内容" DataField="SpecialContent">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="工作分类" DataField="ChamberlaineName">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="任务类型" DataField="TypeName">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>                            
                            <asp:BoundField HeaderText="完成状况" DataField="MemberName">
                                <HeaderStyle Width="7%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:ButtonField ButtonType="Image" CommandName="Details" HeaderText="详细"
                                ImageUrl="~/images/info.gif">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                            </asp:ButtonField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        
    </div>
</asp:Content>
